"use strict";
class Store {
    constructor() {
        this.map = new Map();
    }
    // 往仓库里面追加数据
    add(index, value) {
        this.map.add(index, value);
    }
    // 根据索引拿出数据
    get(index) {
        return this.map.get(index);
    }
}
class People {
    constructor(name, age) {
        this.name = name;
        this.age = age;
    }
}
let s1 = new Store();
s1.add("1", new People("罗佰君", 20));
s1.add("2", new People("伍雨薇", 20));
let p = s1.get("1");
console.log(p);
